function loadList(todayDetailList) {
  // 循环生成省级列表
  var str = ``
  $.each(todayDetailList, function(index, ele) {
    var citystr = `` //所有市的tr内容
    // 生成市的列表
    $.each(ele.cityList, function(index, eles) {
      citystr += ` <tr>
      <td>${eles.cityName} </td>
        <td>${eles.suspectedNum}</td>
        <td>${eles.currentConfirmedNum}</td>
        <td>${eles.confirmedNum}</td>
        <td>${eles.curedNum}</td>
        <td>${eles.deadNum}</td>
      </tr>`
    })
    // console.log(citystr)
    str += `  <tr>
        <td class="firstPro" >
          ${ele.provinceName}   
        </td>
        <td>${ele.suspectedNum}</td>
        <td>${ele.currentConfirmedNum}</td>
        <td>${ele.confirmedNum}</td>
        <td>${ele.curedNum}</td>
        <td>${ele.deadNum}</td>
      </tr>
      <tr>
        <td colspan="6">
          <table class="second_list" border="1">
            <tbody>
              ${citystr}
            </tbody>
          </table>
       </td>
      </tr>
      `
  })
  $('#firstList').html(str)
}
// 点击省份 让市的table显示
$('#firstList').on('click', '.firstPro', function() {
  $(this)
    .parent()
    .next()
    .find('.second_list')
    .toggle()
})
